package interfaces;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.List;

import excepciones.ProductoException;
import beans.*;

public interface webInterface extends Remote {
	
	
	//edu
	public List<Mozo> MozosList() throws RemoteException;
	public int abrirMesa(int nroMesa,int cantPersonas, int idMozo) throws RemoteException;
	public void cerrarMesa(int nroMesa) throws RemoteException;
	public void cerrarCaja(float totalEfectivoCaja,int sucursalId) throws RemoteException;
	public Mozo getMozo(int id) throws RemoteException;
	public List<Comision> comisionMozosList() throws RemoteException;
	public void registrarComisionesMozos() throws RemoteException;
	public Usuario usuarioValido(String nombre,String clave) throws RemoteException;
	public void cargarComanda(List<Object[]>os,int ddlMozo,int nroMesa) throws RemoteException;
	
	//Listados
	public List<Usuario> usuariosList() throws RemoteException;
	public List<Mozo> mozosList() throws RemoteException;
	public List<Sucursal> sucursalesList() throws RemoteException;
	public List<Producto> productosList() throws RemoteException;
	public List<Mesa> mesasList() throws RemoteException;
	public List<Object[]> platosList(String rubro) throws RemoteException;
	public List<Object[]> comandasList(String Rubro) throws RemoteException;
	
	public Object[] getComanda(int id) throws RemoteException;
	
	public void solicitarInsumosAdministracion (  ) throws RemoteException;
	public List< Compra > listaReposicionInsumosSucursal ( ) throws RemoteException;
	public Producto obtenerProductoXNombre( String nombreProd )throws RemoteException, ProductoException;
	public List<Compra> obtenerCompras() throws RemoteException;
	public List<Object[]> planesProdList() throws RemoteException;
	public List<Object[]> obtenerProductosObject() throws RemoteException;
	public List<Object[]> obtenerRecetasObject() throws RemoteException;
	public void crearPlanProduccion(List<Object[]> os) throws RemoteException;
	
}
